<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>AJAX Hello</title>
    <script src="scripts/jquery-1.11.2.min.js"></script>
    <script>
      $(function(){
        $("#btn1").click(function(){
          $.get("/ajax",function(data){
            $("#content").html(data);
            alert(data);
          })
        })
      })
    </script>
</head>
<body>
  <div id="content"></div>
  <button id="btn1">获取信息</button>
</body>
</html>
